<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-8-9
 * Time: 下午 10:29
 */
class loginController
{
    private $model;
    private $view;

    /*初始化*/
    function __construct()
    {
        require('model/model.php');
        require('view/login.php');
        $this->model = new Model();
        $this->view = new Author();
    }

    /*验证登录*/
    public function login($param)
    {
        $this->view->fetchLogin($param);
    }

    /*验证登录*/
    public function Index($param)
    {
        $this->view->fetchIndex($param);
    }

    /*验证登录*/
    public function logout($param)
    {
        $this->view->fetchLogout($param);
    }

    /*登录测试*/
    public function Test($param)
    {
        $this->view->fetchTest($param);
    }
}